<template>
  <a-date-picker @change="onChange" :value="value" v-bind="cellProps" />
</template>

<script>
export default {
  name: 'VxeDatePickerCell',
  props: {
    value: [String, Number],
    params: Object,
    renderOptions: Object,
    cellProps: Object
  },
  methods: {
    onChange(val) {
      const { row, column, $table } = this.params
      this.$set(row, column.property, val)
      $table.updateStatus(this.params)
    }
  },
  enhanced: {
    translate: false
  }
}
</script>
